package collector;

import java.util.List;

import org.springframework.beans.factory.BeanNameAware;

public class NetCollector implements Collector,BeanNameAware{
	private String cname;
	private boolean sex;
	private List<String> favs;
	
	public NetCollector(String cname,boolean sex) {
		super();
		this.cname = cname;
		this.sex = sex;
		System.out.println("net cname.."+cname);
	}

	public List<String> getFavs() {
		return favs;
	}

	public void setFavs(List<String> favs) {
		this.favs = favs;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public String getCname() {
		return cname;
	}

	public NetCollector() {
		System.out.println("contructor..");
	}

	@Override
	public void collect() {
		System.out.println("Net collect..");
	}
	
	public void init(){
		System.out.println("init");
	}
	
	public void destroy(){
		System.out.println("destroy");
	}

	@Override
	public void setBeanName(String name) {
		System.out.println(name+"00000");
	}

}
